import request from '@/utils/request'

// 查询财务用款管理列表
export function listMoney(query) {
  return request({
    url: '/official/money/list',
    method: 'get',
    params: query
  })
}

// 查询财务用款管理详细
export function getMoney(spendMoneyId) {
  return request({
    url: '/official/money/' + spendMoneyId,
    method: 'get'
  })
}

// 新增财务用款管理
export function addMoney(data) {
  return request({
    url: '/official/money',
    method: 'post',
    data: data
  })
}

// 修改财务用款管理
export function updateMoney(data) {
  return request({
    url: '/official/money',
    method: 'put',
    data: data
  })
}

// 删除财务用款管理
export function delMoney(spendMoneyId) {
  return request({
    url: '/official/money/' + spendMoneyId,
    method: 'delete'
  })
}



// 查询员工管理列表
export function listEmployee() {
  return request({
    url: '/personnel/employee/list',
    method: 'get',
  })
}


// 查询部门管理列表
export function listDepartment() {
  return request({
    url: '/personnel/department/list',
    method: 'get',
  })
}
